package c_01;

/**
 * @author fu-xiao-liu
 * @Date 2022/5/26 18:10
 */
public class Demo06_StringTableGC {

    public static void main(String[] args) {
        int i = 0;
        try {
            for(int j = 0; j < 10000; j++) { // j = 100, j = 10000
                String.valueOf(j).intern();
                i++;
            }
        }catch (Exception e) {
            e.printStackTrace();
        }finally {
            System.out.println(i);
        }
    }
}